const nqtApplyInfo = (request) => {
	return {
        // 分页获取
        view_nqtApplyInfo_page(query = {}) {
			return request('/application/nqtApplyInfo/page', {
				method: 'post',
				data: query,
			})
		},
        // 通过id获取
        view_nqtApplyInfo_view(id) {
			return request(`/application/nqtApplyInfo/${id}`, {
				method: 'get'
			})
		},
        // 编辑
        view_nqtApplyInfo_edit(query= {}){
            return request('/application/nqtApplyInfo/edit', {
				method: 'post',
				data: query,
			})
        },
        
        // 删除
        view_nqtApplyInfo_del(ids) {
			return request('/application/nqtApplyInfo/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
        // 审批
        view_nqtApplyInfo_apply(query = {}) {
			return request('/application/nqtApplyInfo/apply', {
				method: 'post',
				data: query,
			})
		},
        // 流程
        view_approvalLogic_nqtProcess(query = {}) {
			return request('/application/approvalLogic/nqtProcess', {
				method: 'post',
				data: query,
			})
		},
		  // 下载文件列表
		  view_nqtApplyFile_page(query = {}) {
			return request('/application/nqtApplyFile/page', {
				method: 'post',
				data: query,
			})
		},
		  // 文件下载
		  view_nqtApplyFile_download(id) {
			return request(`/application/nqtApplyFile/download/${id}`, {
				method: 'post',
				responseType: 'blob',
			})
		},
    }
}

export default ({ request }: any) => ({
	...nqtApplyInfo(request),
})